package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("capacity_information_airspace")
public class CapacityInformationAirspace {
    @TableId(type = IdType.AUTO)
    private Long id;                        // 序号
    private String airspaceNumber;          // 空域编号
    private Integer airspaceType;           // 空域类型 (1: 起降空域, 2: 航路空域, 3: 作业空域)
    private String airspaceSize;            // 空域大小
    private LocalDateTime alertTime;        // 告警时段
    private Integer alertLevel;             // 告警等级
    private Integer airspaceFlow;           // 空域流量
    private Integer airspaceCapacity;       // 空域容量
    private Integer routeInfo;              // 航线信息

    public CapacityInformationAirspace(String airspaceNumber, Integer airspaceType, String airspaceSize,LocalDateTime alertTime, Integer alertLevel, Integer airspaceFlow, Integer airspaceCapacity, Integer routeInfo) {
        this.airspaceNumber = airspaceNumber;
        this.airspaceType = airspaceType;
        this.airspaceSize = airspaceSize;
        this.alertTime = alertTime;
        this.alertLevel = alertLevel;
        this.airspaceFlow = airspaceFlow;
        this.airspaceCapacity = airspaceCapacity;
        this.routeInfo = routeInfo;
    }

    public CapacityInformationAirspace(String airspaceNumber, int airspaceType,String airspaceSize, int alertLevel, int airspaceFlow, int airspaceCapacity, int airspaceType1) {
    }
}
